//
//  ClipViewModel.h
//  TheVideoClip
//
//  Created by huyan on 2018/4/3.
//  Copyright © 2018年 北斗君合MacMini. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <Photos/Photos.h>

@interface ClipViewModel : NSObject

+ (UIImage *)getVideoPreViewImageWithTime:(NSTimeInterval)timeValue asset:(AVURLAsset *)asset;

+ (NSString *)timeFormatted:(NSInteger)totalSeconds;

+ (CGFloat)realSecondsWithFormatted:(NSString *)timeStr;

+ (void)cutVideoAndOutPut:(AVURLAsset *)asset beginTime:(CGFloat)beginTime endTime:(CGFloat)endTime block:(void(^)(NSString *videoFilePath, BOOL success))block;

@end
